home *** CD-ROM | disk | FTP | other *** search
- /*
- File: SerialBox.h
-
- Contains: xxx put contents here xxx
-
- Version: xxx put version here xxx
-
- Copyright: © 1998 by Apple Computer, Inc., all rights reserved.
-
- */
-
-
- #include <USB.h>
-
- #include "DriverServices.h"
- #include "processes.h"
- #include "ShimSerialInternal.h"
-
- void readCompletion(USBPB *pb);
- void writeCompletion(USBPB *pb);
-
- void serialBoxEntry(USBDeviceRef device, USBDeviceDescriptor *desc);
- static void StartStatusMonitor(USBPipeRef interruptPipe);
- static void InitializePB(USBPB *pb, USBDeviceRef ref, USBCompletion handler);
- void USBStartReadPolling(void);
- Boolean TimeoutPreviousRequest(void);
- void USBSetBaudRateDivisor(UInt16 divisor);
- void USBSetParChar(UInt8 parChar);
- void USBSetStopBits(UInt16 stopBits);
- void USBSetDataBits(UInt16 dataBits);
- void USBSetParityBits(UInt16 parityBits);
- void USBSetControl(UInt16 state);
- void USBSetDTRState(Boolean state);
- void USBSetRTSState(Boolean state);
- void USBSetBreakState(Boolean state);
- UInt32 USBGetModemStatus(void);
- void serialBoxEntry(USBDeviceRef device, USBDeviceDescriptor *desc);
- void ShimInput(UInt8 *buf, UInt32 count);
- void USBStartReadPolling();
- void USBStopReadPolling();
- OSStatus USBSerialWrite(IOParam *pb);
-
-
- void B_EnableRTS(ShimSerialGlobals * globals, Boolean enable);
- void B_SetBreak(ShimSerialGlobals * globals, Boolean setBreak);
- void B_SetLenParStop(ShimSerialGlobals * globals, UInt8 lenParStop );
-